using AutoMapper;
using ShopForWeb.Dto.ViewModels;
using ShopForWeb.Models;
namespace ShopForWeb.Dto.Profiles;

public class ShopForWebProfile : Profile
{
  public ShopForWebProfile()
  {
    CreateMap<User, UserViewModels>().ReverseMap();
    CreateMap<Commodity, CommodityViewModel>().ReverseMap();
    CreateMap<Manager, ManagerViewModel>().ReverseMap();
    CreateMap<Order, OrderViewModel>().ReverseMap();
    CreateMap<OrderDetails, OrderDetailViewModel>().ReverseMap();
    CreateMap<ShopCart, ShopCartViewModel>().ReverseMap();

  }

}
